﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class WeaponCtrl : MonoBehaviour {

	// Use this for initialization
	void Start () {
		
	}

	private void OnTriggerEnter2D(Collider2D collider2d) {
		Debug.Log ("触发");
		if (collider2d.gameObject.tag == "Enemy") {
			collider2d.gameObject.GetComponent<BossCtrl> ().GetHurt (30);
		}
	}
	
	// Update is called once per frame
	void Update () {
		
	}
}
